package name.jiaosha.air.system.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.ali8ba.Domain;

@Entity
@Table(name = "docid_factory")
public class DocIDFactory extends Domain {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id()
	@Column(name = "id", unique = true, nullable = false, precision = 11)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	@Column(name = "com_id")
	private Integer comId;
	
	@Column(name = "typeName")
	private String typeName;
	
	@Column(name = "lastNum")
	private int lastNum;
	
	@Column(name = "last_docId")
	private String lastDocID;

	public DocIDFactory() {

	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getComId() {
		return comId;
	}

	public void setComId(Integer comId) {
		this.comId = comId;
	}

	public String getTypeName() {
		return typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public int getLastNum() {
		return lastNum;
	}

	public void setLastNum(int lastNum) {
		this.lastNum = lastNum;
	}

	public String getLastDocID() {
		return lastDocID;
	}

	public void setLastDocID(String lastDocID) {
		this.lastDocID = lastDocID;
	}

}
